package accs.model;

import org.apache.http.HttpHost;
import org.apache.http.auth.UsernamePasswordCredentials;

public class Context {
	private HttpHost proxy=null;
	private UsernamePasswordCredentials proxyAuth=null;
	private String useragent=null;
	
	public Context() {
	}

	public HttpHost getProxy() {
		return proxy;
	}

	public void setProxy(HttpHost proxy) {
		this.proxy = proxy;
	}
	
	public void setProxy(String host, int port) {
		this.proxy = new HttpHost(host, port);
	}
	
	public void setProxyAuth(String user, String pass) {
		this.proxyAuth=new UsernamePasswordCredentials(user, pass);
	}

	public UsernamePasswordCredentials getProxyAuth() {
		return proxyAuth;
	}

	public String getUseragent() {
		return useragent;
	}

	public void setUseragent(String useragent) {
		this.useragent = useragent;
	}
}